package csmacd;

public class SimEvent {
	
	public event_type type;
	public int i;				//number of times packet has gone into back off mode
	public int N;				//which computer this event belongs to
	
	public int t_arrival; 		//the time of the event's arrival at each stage
	
	private int wait_time;
	
	SimEvent(int N) {
		i = 0;
		this.N = N;
		wait_time = 0;
		type = event_type.MAC_ARRIVAL; //always start with arrival events
	}
	
	public void addWait(int w) {
		wait_time += w;
	}
	
	public int getWait() {
		return wait_time;
	}
	
}

